package com.fz.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fz.core.BaseEntity;

import java.time.LocalDateTime;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author fz
 * @since 2024-08-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_notice")
public class TNotice extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 发布时间
     */
    private LocalDateTime time;

    /**
     * 状态
     */
    private Integer statue;

    /**
     * 浏览量
     */
    private Long view;




    public TNotice(Long id, Integer statue,Integer statu) {
        super(id);
        this.statue = statu;
    }

    public TNotice(Long id, String title, String content){
        super(id);
        this.title=title;
        this.content=content;
    }
    public TNotice(String title,String content){
        this.title=title;
        this.content=content;
    }
    public TNotice(Long id,Long view){
        super(id);
        this.view=view;
    }


    public TNotice(String title, String content, LocalDateTime time) {
        this.title=title;
        this.content=content;
        this.time=time;
    }
}
